package gocache

type PeerPicker interface { // 根据传入的key选择peerGetter
	PickPeer(key string) (peer PeerGetter, ok bool)
}

type PeerGetter interface { // 对应流程中的HTTP客户端
	Get(group string, key string) ([]byte, error) // 从对应group查找缓存值
}
